const router = require('koa-router')()
const user = require('./user')
const post = require('./post')
const dept = require('./dept')
const menu = require('./menu')
const role = require('./role')

router.prefix('/system')

router.use(post.routes(), post.allowedMethods())
router.use(user.routes(), user.allowedMethods())
router.use(dept.routes(), dept.allowedMethods())
router.use(menu.routes(), menu.allowedMethods())
router.use(role.routes(), role.allowedMethods())

module.exports = router
